package com.github.shiro.service;

import com.github.shiro.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ruiyanglee
 * @since 2020-07-23
 */
public interface IUserService extends IService<User> {

    List<User> findAll();

    User findById(Long id);

    User findByUsername(String username);

    Set<String> findRolesByUsername(String username);

    Set<String> findPermissionsByUsername(String username);
}
